// import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/event",
  name: "Event",
  component: Layout,
  redirect: "/event/list",
  meta: {
    icon: "ep:trophy",
    title: "赛事管理2",
    rank: 3
  },
  children: [
    {
      path: "/event/list",
      name: "EventList",
      component: () => import("@/views/event/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "赛事列表",
        showParent: true
      }
    },
    {
      path: "/event/create",
      name: "EventCreate",
      component: () => import("@/views/event/create/index.vue"),
      meta: {
        icon: "ep:plus",
        title: "创建赛事",
        showParent: true
      }
    },
    {
      path: "/event/schedule",
      name: "EventSchedule",
      component: () => import("@/views/event/schedule/index.vue"),
      meta: {
        icon: "ep:calendar",
        title: "赛程安排",
        showParent: true
      }
    },
    {
      path: "/event/detail/:id",
      name: "EventDetail",
      component: () => import("@/views/event/detail/index.vue"),
      meta: {
        title: "赛事详情",
        showLink: false,
        activePath: "/event/list"
      }
    },
    // {
    //   path: "/event/edit/:id",
    //   name: "EventEdit",
    //   component: () => import("@/views/event/edit/index.vue"),
    //   meta: {
    //     title: "编辑赛事",
    //     showLink: false,
    //     activePath: "/event/list"
    //   }
    // }
  ]
} satisfies RouteConfigsTable;
